package com.kdd.campus.sh.po;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/****
 * @Author:shenkunlin
 * @Description:ShOrder构建
 * @Date 2019/6/14 19:13
 *****/
@ApiModel(description = "ShOrder",value = "ShOrder")
@Table(name="sh_order")
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Data
public class ShOrder{

	@ApiModelProperty(value = "")
	@Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
	private Integer id;//

	@Column(name = "order_sn")
	private String orderSn;		//订单编号

	@ApiModelProperty(value = "数量合计")
    @Column(name = "total_num")
	private Integer totalNum;//数量合计

	@ApiModelProperty(value = "金额合计")
    @Column(name = "total_money")
	private Double totalMoney;//金额合计

	@ApiModelProperty(value = "优惠金额")
    @Column(name = "pre_money")
	private Double preMoney;//优惠金额

	@ApiModelProperty(value = "邮费")
    @Column(name = "post_fee")
	private Double postFee;//邮费

	@ApiModelProperty(value = "实付金额")
    @Column(name = "real_payment")
	private Double realPayment;//实付金额

	@ApiModelProperty(value = "创建时间")
    @Column(name = "create_time")
	private Date createTime;//创建时间

	@ApiModelProperty(value = "修改时间")
    @Column(name = "update_time")
	private Date updateTime;//修改时间

	@ApiModelProperty(value = "付款时间")
    @Column(name = "pay_time")
	private Date payTime;//付款时间

	@ApiModelProperty(value = "交易完成时间")
    @Column(name = "end_time")
	private Date endTime;//交易完成时间

	@ApiModelProperty(value = "交易关闭时间")
    @Column(name = "close_time")
	private Date closeTime;//交易关闭时间

	@ApiModelProperty(value = "购买者id")
	@Column(name = "buyerId")
	private Long buyerId;//购买者id

	@ApiModelProperty(value = "出售者id")
    @Column(name = "sellerId")
	private Long sellerId;//出售者id

	@ApiModelProperty(value = "出售者昵称")
	@Column(name = "seller_name")
	private String sellerName;//出售者昵称

	@ApiModelProperty(value = "出售者头像")
	@Column(name = "seller_img")
	private String sellerImg;	//出售者头像

	@ApiModelProperty(value = "")
    @Column(name = "receiver_name")
	private String receiverName;//

	@ApiModelProperty(value = "")
    @Column(name = "receiver_phone")
	private String receiverPhone;//

	@ApiModelProperty(value = "")
    @Column(name = "receiver_university")
	private String receiverUniversity;//

	@ApiModelProperty(value = "")
    @Column(name = "receiver_campus")
	private String receiverCampus;//

	@ApiModelProperty(value = "")
    @Column(name = "receiver_dormitory")
	private String receiverDormitory;//

	@ApiModelProperty(value = "")
    @Column(name = "receiver_room")
	private String receiverRoom;//

	@ApiModelProperty(value = "备注")
    @Column(name = "receiver_comment")
	private String receiverComment;//

	@ApiModelProperty(value = "省")
	@Column(name = "receiver_province")
	private String receiverProvince;

	@ApiModelProperty(value = "市")
	@Column(name = "receiver_city")
	private String receiverCity;

	@ApiModelProperty(value = "区")
	@Column(name = "receiver_area")
	private String receiverArea;

	@ApiModelProperty(value = "支付状态 0:未支付 1:已支付")
    @Column(name = "pay_status")
	private Integer payStatus;//支付状态 0:未支付 1:已支付

	@ApiModelProperty(value = "0:删除  1:可见")
    @Column(name = "status")
	private Integer status;//0:删除  1:可见
}
